public void Can_parse_stash_names(string rawStash, int index, string name, string message) { Assert.IsTrue(GitStash.TryParse(rawStash, out var stash)); Assert.NotNull(stash); Assert.AreEqual(index, stash.Index); Assert.AreEqual(message, stash.Message); Assert.AreEqual(name, stash.Name); }
public void Identifies_invalid_stash_strings(string rawStash) { Assert.IsFalse(GitStash.TryParse(rawStash, out var stash)); Assert.Null(stash); }