Represents a factory to create FactCommand.
Наследование: ITestCommandFactory
        public void CreateReturnsEmptyCommandIfTestMethodIsParameterized()
        {
            var sut = new FactCommandFactory();
            var method = new Methods<FactCommandFactoryTest>().Select(x => x.ParameterizedMethod(null, 0));

            var actual = sut.Create(Reflector.Wrap(method), null);

            Assert.Empty(actual);
        }
        public void CreateReturnsCorrectCommandIfTestMethodIsValid(MethodInfo method)
        {
            var sut = new FactCommandFactory();
            var expected = method.ReflectedType.FullName + "." + method.Name;

            var actual = sut.Create(Reflector.Wrap(method), null).Single();

            var command = Assert.IsAssignableFrom<FactCommand>(actual);
            Assert.Equal(expected, command.DisplayName);
        }
 public void SutIsTestCommandFactory()
 {
     var sut = new FactCommandFactory();
     Assert.IsAssignableFrom<ITestCommandFactory>(sut);
 }
 public void CreateWithNullTestMethodThrows()
 {
     var sut = new FactCommandFactory();
     Assert.Throws<ArgumentNullException>(() => sut.Create(null, null).ToArray());
 }