public void InitializesCorrectly() { ModuleInfo mInfo = new ModuleInfo("name", "type", "location"); Assert.AreEqual("name", mInfo.Name); Assert.AreEqual("type", mInfo.AssemblyName); Assert.AreEqual("location", mInfo.VirtualPath); }
public void CanChangeNameAndTypeAndLocation() { ModuleInfo mInfo = new ModuleInfo("name", "type", "location"); mInfo.Name = "OtherName"; mInfo.AssemblyName = "OtherType"; mInfo.VirtualPath = "OtherLocation"; Assert.AreEqual("OtherName", mInfo.Name); Assert.AreEqual("OtherType", mInfo.AssemblyName); Assert.AreEqual("OtherLocation", mInfo.VirtualPath); }