public void Properties() { var transform = new GLKEffectPropertyTransform(); Assert.That(transform.ModelViewMatrix.ToString(), Is.EqualTo("(1, 0, 0, 0)\n(0, 1, 0, 0)\n(0, 0, 1, 0)\n(0, 0, 0, 1)"), "ModelViewMatrix"); Assert.That(transform.ProjectionMatrix.ToString(), Is.EqualTo("(1, 0, 0, 0)\n(0, 1, 0, 0)\n(0, 0, 1, 0)\n(0, 0, 0, 1)"), "ProjectionMatrix"); // Is TextureMatrix supposed to be here? I can't find it in apple's docs, and it throws a selector not found exception // Assert.That (transform.TextureMatrix.ToString (), Is.EqualTo ("(0, 0, 0, 0)"), "TextureMatrix"); transform = new GLKBaseEffect().Transform; Assert.That(transform.ModelViewMatrix.ToString(), Is.EqualTo("(1, 0, 0, 0)\n(0, 1, 0, 0)\n(0, 0, 1, 0)\n(0, 0, 0, 1)"), "ModelViewMatrix"); Assert.That(transform.ProjectionMatrix.ToString(), Is.EqualTo("(1, 0, 0, 0)\n(0, 1, 0, 0)\n(0, 0, 1, 0)\n(0, 0, 0, 1)"), "ProjectionMatrix"); }
public void Properties() { TestRuntime.AssertSystemVersion(PlatformName.MacOSX, 10, 8, throwIfOtherPlatform: false); var transform = new GLKEffectPropertyTransform(); Assert.That(transform.ModelViewMatrix.ToString(), Is.EqualTo("(1, 0, 0, 0)\n(0, 1, 0, 0)\n(0, 0, 1, 0)\n(0, 0, 0, 1)"), "ModelViewMatrix"); Assert.That(transform.ProjectionMatrix.ToString(), Is.EqualTo("(1, 0, 0, 0)\n(0, 1, 0, 0)\n(0, 0, 1, 0)\n(0, 0, 0, 1)"), "ProjectionMatrix"); // Is TextureMatrix supposed to be here? I can't find it in apple's docs, and it throws a selector not found exception // Assert.That (transform.TextureMatrix.ToString (), Is.EqualTo ("(0, 0, 0, 0)"), "TextureMatrix"); transform = new GLKBaseEffect().Transform; Assert.That(transform.ModelViewMatrix.ToString(), Is.EqualTo("(1, 0, 0, 0)\n(0, 1, 0, 0)\n(0, 0, 1, 0)\n(0, 0, 0, 1)"), "ModelViewMatrix"); Assert.That(transform.ProjectionMatrix.ToString(), Is.EqualTo("(1, 0, 0, 0)\n(0, 1, 0, 0)\n(0, 0, 1, 0)\n(0, 0, 0, 1)"), "ProjectionMatrix"); }