public void GetExtensionsFromArgument_NullReturnsEmpty() { IArgumentProvider arguments = Substitute.For <IArgumentProvider>(); arguments.GetOption <string>("Option").Returns((string)null); arguments.GetExtensionsFromArgument("Option").Should().BeEmpty(); }
public void GetExtensionsFromArgument_BasicTest() { // Should split extensions across semicolons and trim leading asterisks IArgumentProvider arguments = Substitute.For <IArgumentProvider>(); arguments.GetOption <string>("Option").Returns("*Bar;FooBar"); arguments.GetExtensionsFromArgument("Option").Should().BeEquivalentTo("Bar", "FooBar"); }