public void Should_only_add_unique_type_scanners() { // Arrange var context = new ScannerContext(); var typeScanner = new ProfileTypeScanner(); // Act context.AddTypeScanner(typeScanner); context.AddTypeScanner(typeScanner); // Assert Assert.That(context.TypeScanners.Single(), Is.EqualTo(typeScanner)); }
public void Should_throw_when_null() { // Arrange var context = new ScannerContext(); // Act & Assert Assert.Throws <ArgumentNullException>(() => context.AddTypeScanner(null)); }