public void Should_Throw_If_Path_Is_Null() { // Given var context = Substitute.For<ICakeContext>(); // When var result = Record.Exception(() => DirectoryAliases.Directory(context, null)); // Then Assert.IsArgumentNullException(result, "path"); }
public void Should_Return_A_Convertable_Directory_Path() { // Given var context = Substitute.For<ICakeContext>(); // When var result = DirectoryAliases.Directory(context, "./temp"); // Then Assert.IsType<ConvertableDirectoryPath>(result); }
public void Should_Throw_If_Context_Is_Null() { // Given const string path = "./temp"; // When var result = Record.Exception(() => DirectoryAliases.Directory(null, path)); // Then Assert.IsArgumentNullException(result, "context"); }