public void TestSame() { Vector2 foo = new Vector2(1.0, 2.0); Vector2 bar = new Vector2(1.0, 2.0); IDifference result = Point2DDifference.Construct("Foo", foo, bar); Assert.IsNull(result); }
public void TestToString() { Vector2 bar = new Vector2(1.0, 5.0); IDifference result = Point2DDifference.Construct("Foo", null, bar); string diffString = result.ToString(); Assert.IsNotNull(diffString); AssertOneLiner(diffString); }
public void TestOneNull() { Vector2 bar = new Vector2(1.0, 2.0); IDifference result = Point2DDifference.Construct("Foo", null, bar); Assert.IsNotNull(result); result = Point2DDifference.Construct("Foo", bar, null); Assert.IsNotNull(result); }
public void TestTwoNull() { IDifference result = Point2DDifference.Construct("Foo", null, null); Assert.IsNull(result); }