コード例 #1
0
        public void IsPalindromeThrowTest(string input, Type expectedException)
        {
            var sut = new BaseTypeTransformsService();

            Assert.Throws(expectedException, () => sut.IsPalindrome(input));
        }
コード例 #2
0
        public void MissingElementsThrowTest(int[] arr, Type expectedException)
        {
            var sut = new BaseTypeTransformsService();

            Assert.Throws(expectedException, () => sut.MissingElements(arr));
        }
コード例 #3
0
        public void ReverseStringThrowTest(string input, Type expectedException)
        {
            var sut = new BaseTypeTransformsService();

            Assert.Throws(expectedException, () => sut.ReverseString(input));
        }