Ejemplo n.º 1
0
        public void CallCreationFromBytesInternally()
        {
            var factory = new ConcreteFingerprintFactory();

            factory.Create("some_text");

            factory.TimesCreateFromBytesWasCalled.Should().Be(1);
        }
Ejemplo n.º 2
0
        public void NotAcceptInvalidTextInput(string input)
        {
            var factory = new ConcreteFingerprintFactory();

            Action act = () => factory.Create(input);

            act.Should().ThrowExactly <ArgumentException>();
        }