public void ConditionalComposeTest()
        {
            var compositor = new StringCompositor(this.compositionProvider);
            var strings = compositor.Compose(ConditionalCompositionName, "ARG").ToArray();

            CollectionAssert.AreEquivalent(strings, new[] { "__ARG" });
        }
        public void SimpleDecomposeTest()
        {
            const string inputText = "One.CHECK.A-";
            var compositor = new StringCompositor(this.compositionProvider);
            var result = compositor.Decompose(DefaultCompositionName, inputText);

            Assert.AreEqual(result, "CHECK");
        }
        public void ConditionalDecomposeTest()
        {
            const string inputText = "__CHECK";
            var compositor = new StringCompositor(this.compositionProvider);
            var result = compositor.Decompose(ConditionalCompositionName, inputText);

            Assert.IsNotNull(result);
            Assert.AreEqual(result, "CHECK");
        }
        public void SimpleComposeTest()
        {
            var compositor = new StringCompositor(this.compositionProvider);
            var strings = compositor.Compose(DefaultCompositionName, "ARG").ToArray();

            CollectionAssert.AreEquivalent(strings, new[] {
                "One.ARG.A-",
                "One.ARG.B-",
                "Two.ARG.A-",
                "Two.ARG.B-"
            });
        }