public void AssertVectorsNearlyEqual_NotNearlyEqual_Fails() { var expectedVector = new Vector3(1.0f, 2.0f, 3.0f); Assert.Throws <AssertionException>(() => ExtendedAssertions.AssertVectorsNearlyEqual(expectedVector, expectedVector + new Vector3(10.0f, 3.0f, 11.0f))); }
public void AssertVectorsNearlyEqual_NearlyEqual_Passes() { var expectedVector = new Vector3(1.0f, 2.0f, 3.0f); ExtendedAssertions.AssertVectorsNearlyEqual(expectedVector, expectedVector); }