Esempio n. 1
0
        public void ReturnTrueAndPopulateResultGivenValueMatchExists()
        {
            var result = SampleStatus.TryParseValue(SampleStatus.Inactive.Value, out SampleStatus status);

            Assert.IsTrue(result);
            Assert.AreEqual(SampleStatus.Inactive, status);
        }
Esempio n. 2
0
        public void ReturnFalseGivenNoMatchingValueExists()
        {
            var result = SampleStatus.TryParseValue(-1234, out SampleStatus status);

            Assert.IsFalse(result);
        }