NUnit.Framework.Assert.AreNotEqual(uint, uint, string)

Here are the examples of the csharp api class NUnit.Framework.Assert.AreNotEqual(uint, uint, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

5 Examples 7

1. Example

Project: OpenGL.Net
Source File: Gl.VERSION_1_5.cs
View license
[Test]
		public void TestGenBuffer()
		{
			if (!HasVersion(1, 5) && !IsGlExtensionSupported("GL_ARB_vertex_buffer_object") && !HasEsVersion(1, 0))
				Assert.Inconclusive("OpenGL 1.5 or GL_ARB_vertex_buffer_object not supported or OpenGL ES 1.0");

			uint arrayBuffer = Gl.GenBuffer();
			try {
				Assert.AreNotEqual(0U, arrayBuffer, "Gl.GenBuffer failure");

				// It seems that on my system glIsBuffer returns true after glGenBuffer... anyone can confirm
				// Assert.IsFalse(Gl.IsBuffer(arrayBuffer));

				Gl.BindBuffer(BufferTarget.ArrayBuffer, arrayBuffer);
				Assert.IsTrue(Gl.IsBuffer(arrayBuffer));

			} finally {
				if (arrayBuffer != 0) {
					Gl.DeleteBuffers(arrayBuffer);
					Assert.IsFalse(Gl.IsBuffer(arrayBuffer), "Gl.DeleteBuffers failure");
				}
			}
		}

2. Example

Project: OpenGL.Net
Source File: Gl.VERSION_2_0.cs
View license
[Test]
		public void TestCreateProgram()
		{
			if (!HasVersion(2, 0) && !HasEsVersion(2, 0))
				Assert.Inconclusive("OpenGL 2.0 or OpenGL ES 2.0");

			uint program = Gl.CreateProgram();
			Assert.AreNotEqual(0, program, "Gl.CreateProgram failure");

			try {
				Assert.IsTrue(Gl.IsProgram(program));
			} finally {
				if (program != 0) {
					Gl.DeleteProgram(program);
					Assert.IsFalse(Gl.IsProgram(program), "Gl.DeleteProgram failure");
				}
			}
		}

3. Example

Project: OpenGL.Net
Source File: Gl.VERSION_2_0.cs
View license
[Test]
		public void TestCreateShader()
		{
			if (!HasVersion(2, 0) && !HasEsVersion(2, 0))
				Assert.Inconclusive("OpenGL 2.0 or OpenGL ES 2.0");

			uint shader = Gl.CreateShader(ShaderType.VertexShader);
			try {
				Assert.AreNotEqual(0, shader, "Gl.CreateShader failure");
				Assert.IsTrue(Gl.IsShader(shader));

				int shaderGet;

				Gl.GetShader(shader, ShaderParameterName.ShaderType, out shaderGet);
				Assert.AreEqual(Gl.VERTEX_SHADER, shaderGet);
				Gl.GetShader(shader, ShaderParameterName.DeleteStatus, out shaderGet);
				Assert.AreEqual(Gl.FALSE, shaderGet);
				Gl.GetShader(shader, ShaderParameterName.CompileStatus, out shaderGet);
				Assert.AreEqual(Gl.FALSE, shaderGet);

			} finally {
				if (shader != 0) {
					Gl.DeleteShader(shader);
					Assert.IsFalse(Gl.IsShader(shader), "Gl.DeleteShader failure");
				}
			}
		}

4. Example

Project: OpenGL.Net
Source File: Gl.VERSION_1_5.cs
View license
[Test]
		public void TestBufferData()
		{
			if (!HasVersion(1, 5) && !IsGlExtensionSupported("GL_AR/n ..... /n //View Source file for more details /n }

5. Example

Project: OpenGL.Net
Source File: Gl.VERSION_1_5.cs
View license
[Test]
		public void TestMapBuffer()
		{
			if (!HasVersion(1, 5) && !Gl.CurrentExtensions.VertexBuf/n ..... /n //View Source file for more details /n }