コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        public void TestTwoNull()
        {
            IDifference result = Point2DDifference.Construct("Foo", null, null);

            Assert.IsNull(result);
        }