Пример #1
0
        public void BaseFactory_Sync_CorrectCall_Count()
        {
            int initialCount = Counter;

            var generator = new SimpleObjFaker(null);

            generator.Generate();
            generator.Generate();

            generator.Sync();

            Assert.Equal(2, Counter - initialCount);
        }
Пример #2
0
        public void BaseFactory_AcceptChanges_Sync_CorrectCall_NothingToSync_Count()
        {
            int initialCount = Counter;

            var generator = new SimpleObjFaker(null);

            generator.Generate();
            generator.Generate();
            generator.AcceptChanges();

            generator.Sync();

            Assert.Equal(0, Counter - initialCount);
        }