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

            var transformer = new AbsolutePathTransformerAttribute();

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

            Assert.IsNull(result);
        }
コード例 #2
0
        public void Transform_Returns_Full_Path()
        {
            const string value = "test.text";
            var expected = Path.GetFullPath(value);

            var transformer = new AbsolutePathTransformerAttribute();

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

            Assert.AreEqual(expected, result);
        }