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); }
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); }