public void Should_return_the_default_assembly_name_it_if_it_exists_in_the_array_of_arguments() { string[] args = new[] { "file1", "file2" }; string assemblyName = args.GetAssemblyName(); Assert.AreEqual(DefaultSettings.AssemblyName, assemblyName); }
public void Should_return_the_assembly_name_it_if_it_exists_in_the_array_of_arguments() { string[] args = new[] { "/Assembly:MyAssembly", "file1", "file2" }; string assemblyName = args.GetAssemblyName(); Assert.AreEqual("MyAssembly", assemblyName); }