public void NullTryParse() { LocationFilter filter; bool result = LocationFilter.TryParse(null, out filter); Assert.That(filter, Is.Null); Assert.That(result, Is.EqualTo(false)); }
public void TryParseShortName() { LocationFilter filter; bool result = LocationFilter.TryParse("A.B", out filter); Assert.That(filter.Location, Is.EqualTo("A.B")); Assert.That(filter.WithRecurse, Is.EqualTo(false)); Assert.That(result, Is.EqualTo(true)); }
public void TryParse() { LocationFilter filter; bool result = LocationFilter.TryParse("Enterprise.Site", out filter); Assert.That(filter.Location, Is.EqualTo("Enterprise.Site")); Assert.That(filter.WithRecurse, Is.EqualTo(false)); Assert.That(result, Is.EqualTo(true)); }