示例#1
0
        public void BuildDrawingImageName_returns_prefixedName_using_CompResKey()
        {
            var key = ConverterLogic.BuildDrawingImageName("ElementName", ResKeyInfoUseCompResKey);

            Console.WriteLine(key);
            key.Should().Be("{x:Static NameSpaceName:XamlName.ElementNameDrawingImageKey}");
        }
示例#2
0
        public void BuildDrawingImageName_returns_simpleName()
        {
            var resKeyInfo = new ResKeyInfo
            {
                UseComponentResKeys = false,
                Prefix = null
            };

            ConverterLogic.BuildDrawingImageName("ElementName", resKeyInfo).Should().Be("ElementNameDrawingImage");
        }
示例#3
0
 public void BuildDrawingImageName_returns_prefixedName()
 {
     ConverterLogic.BuildDrawingImageName("ElementName", ResKeyInfoUseNamePrefix).Should().Be("NamePrefix_ElementNameDrawingImage");
 }