示例#1
0
        public void CustomizeAddsContextDatabaseSpecimenBuilder()
        {
            var fixture = new Fixture();
            var sut     = new ContextDatabaseCustomization();

            sut.Customize(fixture);

            fixture.Customizations.SingleOrDefault(x => x.GetType() == typeof(ContextDatabaseSpecimenBuilder)).Should().NotBeNull();
        }
    public void CustomizeAddsContextDatabaseSpecimenBuilder()
    {
      var fixture = new Fixture();
      var sut = new ContextDatabaseCustomization();

      sut.Customize(fixture);

      fixture.Customizations.SingleOrDefault(x => x.GetType() == typeof(ContextDatabaseSpecimenBuilder)).Should().NotBeNull();
    }
示例#3
0
        public void CustomizeThrowsIfFixtureIsNull()
        {
            var sut = new ContextDatabaseCustomization();

            Assert.Throws <ArgumentNullException>(() => sut.Customize(null));
        }
 public void CustomizeThrowsIfFixtureIsNull()
 {
   var sut = new ContextDatabaseCustomization();
   Assert.Throws<ArgumentNullException>(() => sut.Customize(null));
 }