예제 #1
0
        public void ListShouldBeCreatedEmptyAndNotNull()
        {
            //---------------Set up test pack-------------------
            var sut = SomePOCOWithListBuilder.BuildRandom();
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var result = sut.Strings;

            //---------------Test Result -----------------------
            Assert.IsNotNull(result);
            CollectionAssert.IsEmpty(result);
        }
예제 #2
0
        public void WhenUsing_WithFilledCollections_ShouldPutDataInCollections()
        {
            //---------------Set up test pack-------------------
            var sut = SomePOCOWithListBuilder.Create().WithRandomProps().WithFilledCollections().Build();

            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var result = sut.Strings;

            //---------------Test Result -----------------------
            Assert.IsNotNull(result);
            CollectionAssert.IsNotEmpty(result);
        }