예제 #1
0
        public static void UnitTest_StaticTest01()
        {
            Test_A a = Create_With_Reference();

            if (a.GetType() != typeof(Test_A))
            {
                throw new Exception($"{a.GetType()} != Test_A");
            }
        }
예제 #2
0
        public void Add_CallsDataSetsWrite()
        {
            var item = new Test_A();

            // act
            classUnderTest.Add(item);

            // assert
            this.mocker.GetMock <IDataSet>().Verify(ds => ds.Add(item), Times.Once());
        }