public static void PackageExists_Throws(string packageName) { var tool = new NuGetTool(); Assert.That(tool, Is.Not.Null); Assert.That(() => tool.PackageExists(packageName), Throws.TypeOf <ArgumentException>()); }
public static void PackageExists1_ReturnsExpectedValue(string packageName, bool expectedResult) { var tool = new NuGetTool(); Assert.That(tool, Is.Not.Null); var result = tool.PackageExists(packageName); Assert.That(result, Is.EqualTo(expectedResult)); }