Esempio n. 1
0
        public void ExtractCodeDependencies_NamespaceMatch()
        {
            var reader = new DependencyReader();

            var dependency = reader.ExtractCodeDependencies(FileText);

            dependency.Namespace.ShouldBe("Omnia.Behaviours.T99.Internal.System");
        }
Esempio n. 2
0
        public void ExtractCodeDependencies_Successfully()
        {
            var reader = new DependencyReader();

            var data = reader.ExtractCodeDependencies(FileText);

            data.Expression.ShouldNotBeNull();
            data.Expression.ShouldBe(@"using MyCompany;
    namespace CodeDependencies
    {
        public class MyDto
        {
            public string Name { get; set; }
        }
    }");
        }