public void ExtractCodeDependencies_NamespaceMatch() { var reader = new DependencyReader(); var dependency = reader.ExtractCodeDependencies(FileText); dependency.Namespace.ShouldBe("Omnia.Behaviours.T99.Internal.System"); }
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; } } }"); }