Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void Test_PropertiesWithout()
        {
            var tested = new FizBar()
            {
                Bar = "Bar", Fiz = "Fiz"
            };
            var expected = new { Bar = "Bar", Fiz = "Fiz2" };

            tested.Expect().PropertiesWithout(x => x.Fiz).Eq(expected);
        }
Esempio n. 3
0
 public void Test_Raise_Error_Fails()
 {
     (new Action(() => FizBar.SampleMethod())).Expect().RaiseError();
 }