示例#1
0
        public void NullTryParse()
        {
            LocationFilter filter;

            bool result = LocationFilter.TryParse(null, out filter);

            Assert.That(filter, Is.Null);
            Assert.That(result, Is.EqualTo(false));
        }
示例#2
0
        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));
        }
示例#3
0
        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));
        }