コード例 #1
0
        public void TestBetween()
        {
            // Define variables and constants
            const int FIVE  = 5;
            const int FOUR  = 4;
            const int THREE = 3;

            // Set up context


            // Execute
            Assure.Between(FOUR, THREE, FIVE);
            try {
                Assure.Between(FOUR, FOUR, FIVE);
                Assert.Fail();
            }
            catch (AssuranceFailedException) {
            }

            // Assert outcome
        }