public void CallCreationFromBytesInternally() { var factory = new ConcreteFingerprintFactory(); factory.Create("some_text"); factory.TimesCreateFromBytesWasCalled.Should().Be(1); }
public void NotAcceptInvalidTextInput(string input) { var factory = new ConcreteFingerprintFactory(); Action act = () => factory.Create(input); act.Should().ThrowExactly <ArgumentException>(); }