Пример #1
0
 public void ThrowIsRundomValueGeneratorIsNull()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         BaseSymbolGenerator.Create(new RandomDataGeneratorSettings(), null);
     });
 }
Пример #2
0
 public void ThrowIsSettingsAreNull()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         BaseSymbolGenerator.Create(null, Mock.Of <IRandomValueGenerator>());
     });
 }
Пример #3
0
        internal static IEnumerable <Symbol> GenerateAsset(BaseSymbolGenerator instance)
        {
            var generateAsset = typeof(BaseSymbolGenerator).GetMethod("GenerateAsset", BindingFlags.NonPublic | BindingFlags.Instance);

            return((IEnumerable <Symbol>)generateAsset.Invoke(instance, new [] { (object)null }));
        }