コード例 #1
0
        public void Transform_Returns_Null_For_Null_Values()
        {
            const string value = null;

            var transformer = new UppercaseTransformerAttribute();

            var result = transformer.Transform(value, null, null);

            Assert.IsNull(result);
        }
コード例 #2
0
        public void Transform_Returns_Null_For_Null_Values()
        {
            const string value = null;

            var transformer = new UppercaseTransformerAttribute();

            var result = transformer.Transform(value, null, null);

            Assert.IsNull(result);
        }
コード例 #3
0
        public void Transform_Returns_Uppercase()
        {
            const string value = "blah blah";
            const string expected = "BLAH BLAH";

            var transformer = new UppercaseTransformerAttribute();

            var result = transformer.Transform(value, null, null);

            Assert.AreEqual(expected, result);
        }
コード例 #4
0
        public void Transform_Returns_Uppercase()
        {
            const string value    = "blah blah";
            const string expected = "BLAH BLAH";

            var transformer = new UppercaseTransformerAttribute();

            var result = transformer.Transform(value, null, null);

            Assert.AreEqual(expected, result);
        }