Refactor tests

This commit is contained in:
Alexey Golub
2019-08-25 17:27:17 +03:00
parent cd3892bf83
commit 43a304bb26
36 changed files with 441 additions and 441 deletions

View File

@@ -3,13 +3,14 @@ using System.Collections.Generic;
using System.Linq;
using CliFx.Models;
using CliFx.Services;
using CliFx.Tests.TestCommands;
using FluentAssertions;
using NUnit.Framework;
namespace CliFx.Tests.Services
{
[TestFixture]
public partial class DelegateCommandFactoryTests
public class DelegateCommandFactoryTests
{
private static CommandSchema GetCommandSchema(Type commandType) =>
new CommandSchemaResolver().GetCommandSchemas(new[] {commandType}).Single();
@@ -18,7 +19,7 @@ namespace CliFx.Tests.Services
{
yield return new TestCaseData(
new Func<CommandSchema, ICommand>(schema => (ICommand) Activator.CreateInstance(schema.Type)),
GetCommandSchema(typeof(TestCommand))
GetCommandSchema(typeof(EchoCommand))
);
}