public void Should_Throw_If_Context_Is_Null() { // Given, When var result = Record.Exception(() => DirectoryAliases.DeleteDirectory(null, "/Temp/DoNotExist")); // Then Assert.IsArgumentNullException(result, "context"); }