예제 #1
0
파일: UnitTest.cs 프로젝트: jwwgo2pl/test
        public void Test_PropertiesWithout_Fails()
        {
            var tested = new FizBar()
            {
                Bar = "Bar", Fiz = "Fiz"
            };
            var expected = new { Bar = "Bar2", Fiz = "Fiz2" };

            tested.Expect().PropertiesWithout(x => x.Fiz).Eq(expected);
        }
예제 #2
0
파일: UnitTest.cs 프로젝트: jwwgo2pl/test
        public void Test_Properties_Fails()
        {
            var tested = new FizBar()
            {
                Bar = "Bar", Fiz = String.Empty
            };
            var expected = new { Bar = "Bar2", Fiz = String.Empty };

            tested.Expect().Properties().Eq(expected);
        }