Пример #1
0
		public void OpenTk10_Preserved ()
		{
			// that will bring OpenTK-1.0 into the .app
			OpenTK.WindowState state = OpenTK.WindowState.Normal;

			var gl = Type.GetType ("OpenTK.Graphics.ES11.GL, OpenTK-1.0", false);
			Assert.NotNull (gl, "ES11/GL");
			var core = Type.GetType ("OpenTK.Graphics.ES11.GL/Core, OpenTK-1.0", false);
			Assert.NotNull (core, "ES11/Core");

			gl = Type.GetType ("OpenTK.Graphics.ES20.GL, OpenTK-1.0", false);
			Assert.NotNull (gl, "ES20/GL");
			core = Type.GetType ("OpenTK.Graphics.ES20.GL/Core, OpenTK-1.0", false);
			Assert.NotNull (core, "ES20/Core");
		}
Пример #2
0
        public void OpenTk10_Preserved()
        {
            // that will bring OpenTK-1.0 into the .app
            OpenTK.WindowState state = OpenTK.WindowState.Normal;
            // Compiler optimization (roslyn release) can remove the variable, which removes OpenTK-1.dll from the app and fail the test
            Assert.That(state, Is.EqualTo(OpenTK.WindowState.Normal), "normal");

            var gl = Helper.GetType("OpenTK.Graphics.ES11.GL, OpenTK-1.0", false);

            Assert.NotNull(gl, "ES11/GL");
            var core = Helper.GetType("OpenTK.Graphics.ES11.GL/Core, OpenTK-1.0", false);

            Assert.NotNull(core, "ES11/Core");

            gl = Helper.GetType("OpenTK.Graphics.ES20.GL, OpenTK-1.0", false);
            Assert.NotNull(gl, "ES20/GL");
            core = Helper.GetType("OpenTK.Graphics.ES20.GL/Core, OpenTK-1.0", false);
            Assert.NotNull(core, "ES20/Core");
        }