public void From_unkown_resource()
 {
     Assert.Throws <InvalidOperationException>(() => FlowLoader.LoadFromEmbeddedResource("x", this.GetType().Assembly, "xxx"));
 }
        public void From_embedded_resource()
        {
            var portnames = FlowLoader.LoadFromEmbeddedResource("x", this.GetType().Assembly, "npantarhei.runtime.tests.flowEmbeddedResource.txt").SelectMany(s => new[] { s.FromPort.Fullname, s.ToPort.Fullname });

            Assert.That(portnames.ToArray(), Is.EqualTo(new[] { "x/a", "x/b", "g/b", "g/c" }));
        }