public void Constructor_ThrowsArgumentNullException_NullTableLoader()
        {
            ISalesDataMatrix loader = null;
            var path = Fixture.Create <string>();

            Assert.Throws <ArgumentNullException>(() => new CarSales(loader, path));
        }
Exemplo n.º 2
0
 // Constructs and instance of the <see cref="SalesTableFactory"/> class
 public CarSales(ISalesDataMatrix tableLoader, string filepath)
 {
     _filepath = !string.IsNullOrWhiteSpace(filepath) ? filepath : throw new ArgumentNullException(nameof(filepath));
     _matrix   = tableLoader ?? throw new ArgumentNullException(nameof(tableLoader));
 }