public void CreateAnonymousFromNullSpecimenContextWithSeedThrows()
        {
            // Arrange
            var dummySeed = new object();

            // Act & assert
            Assert.Throws <ArgumentNullException>(() =>
                                                  CreateSeedExtensions.CreateAnonymous <object>((ISpecimenContext)null, dummySeed));
        }
Exemple #2
0
        public void CreateAnonymousFromNullSpecimenContextWithSeedThrows()
        {
            // Fixture setup
            var dummySeed = new object();

            // Exercise system and verify outcome
            Assert.Throws <ArgumentNullException>(() =>
                                                  CreateSeedExtensions.CreateAnonymous <object>((ISpecimenContext)null, dummySeed));
            // Teardown
        }