Пример #1
0
        public void NumberOfTeamsTryParseCanOutNull()
        {
            NumberOfTeams result;

            NumberOfTeams.TryParse("7", out result);
            Assert.IsNull(result);
        }
Пример #2
0
        public void NumberOfTeamsTryParseCanOutValidResult()
        {
            NumberOfTeams result;

            NumberOfTeams.TryParse("24", out result);
            Assert.IsTrue(result.Value == 24);
        }
Пример #3
0
        public void NumberOfTeamsTryParseCanReturnFalse()
        {
            NumberOfTeams result;

            Assert.IsFalse(NumberOfTeams.TryParse("1", out result));
        }