public void GetFiles_Test() { IAssemblySystem assemblySystem = new AssemblySystem(); IAssembly sampleAssembly = assemblySystem.GetAssembly(new Int32().GetType()); FileStreamBase[] fileStreams = sampleAssembly.GetFiles(); Assert.AreEqual(1, fileStreams.Length); Assert.That(fileStreams[0].Name,new EndsWithConstraint("mscorlib.dll")); }
public void GetFiles_Test() { IAssemblySystem assemblySystem = new AssemblySystem(); IAssembly sampleAssembly = assemblySystem.GetAssembly(new Int32().GetType()); FileStreamBase[] fileStreams = sampleAssembly.GetFiles(); Assert.AreEqual(1, fileStreams.Length); fileStreams[0].Name.Should().EndWith("mscorlib.dll"); }