Ejemplo n.º 1
0
        public void TestParsedDeclareGoal()
        {
            var model   = new KAOSModel();
            var path    = new Uri("/tmp/fake");
            var builder = new FirstStageBuilder(model, path);

            builder.BuildDeclare(new ParsedGoal("my-goal"));
            model.Goals(x => x.Identifier == "my-goal").ShallBeSingle();
        }
Ejemplo n.º 2
0
        public void TestFailWhenParsedDeclareUnknow()
        {
            var model   = new KAOSModel();
            var path    = new Uri("/tmp/fake");
            var builder = new FirstStageBuilder(model, path);

            Assert.Catch(() => {
                builder.BuildDeclare(new UnknownParsedDeclare("unknown"));
            });
        }