Example #1
0
 internal File(string path, bool computed, ComputedString outputDirectory, ComputedString outputName)
 {
     this.Path            = path;
     this.Computed        = computed;
     this.OutputDirectory = outputDirectory;
     this.OutputName      = outputName;
 }
Example #2
0
        public void Can_compute_string_from_self_referenced_properties()
        {
            var instance = new Foo();

            instance.Bar = "Fizz";
            instance.Baz = "Buzz";

            var actual = ComputedString.Compute(instance, "{{Bar}}{{Baz}}");

            Assert.Equal("FizzBuzz", actual);
        }