예제 #1
0
        public void Size3F_EqualsObject()
        {
            var volume1 = new Size3F(123.45f, 456.78f, 789.99f);
            var volume2 = new Size3F(123.45f, 456.78f, 789.99f);

            TheResultingValue(volume1.Equals((Object)volume2)).ShouldBe(true);
            TheResultingValue(volume1.Equals("This is a test")).ShouldBe(false);
        }
예제 #2
0
        public void Size3F_EqualsObject()
        {
            var volume1 = new Size3F(123.45f, 456.78f, 789.99f);
            var volume2 = new Size3F(123.45f, 456.78f, 789.99f);

            TheResultingValue(volume1.Equals((Object)volume2)).ShouldBe(true);
            TheResultingValue(volume1.Equals("This is a test")).ShouldBe(false);
        }
예제 #3
0
        public void Size3F_EqualsSize3F()
        {
            var volume1 = new Size3F(123.45f, 456.78f, 789.99f);
            var volume2 = new Size3F(123.45f, 456.78f, 789.99f);
            var volume3 = new Size3F(123.45f, 555, 789.99f);
            var volume4 = new Size3F(222, 456.78f, 789.99f);
            var volume5 = new Size3F(123.45f, 456.78f, 999);

            TheResultingValue(volume1.Equals(volume2)).ShouldBe(true);
            TheResultingValue(volume1.Equals(volume3)).ShouldBe(false);
            TheResultingValue(volume1.Equals(volume4)).ShouldBe(false);
            TheResultingValue(volume1.Equals(volume5)).ShouldBe(false);
        }
예제 #4
0
        public void Size3F_EqualsSize3F()
        {
            var volume1 = new Size3F(123.45f, 456.78f, 789.99f);
            var volume2 = new Size3F(123.45f, 456.78f, 789.99f);
            var volume3 = new Size3F(123.45f, 555, 789.99f);
            var volume4 = new Size3F(222, 456.78f, 789.99f);
            var volume5 = new Size3F(123.45f, 456.78f, 999);

            TheResultingValue(volume1.Equals(volume2)).ShouldBe(true);
            TheResultingValue(volume1.Equals(volume3)).ShouldBe(false);
            TheResultingValue(volume1.Equals(volume4)).ShouldBe(false);
            TheResultingValue(volume1.Equals(volume5)).ShouldBe(false);
        }