Adds more unit tests (#133)
This commit is contained in:
parent
e138706536
commit
8278694105
37 changed files with 1406 additions and 996 deletions
|
|
@ -6,11 +6,6 @@ namespace Server.Tests
|
|||
{
|
||||
public class ServerFixture : IDisposable
|
||||
{
|
||||
private static Mobile m_FromMobile;
|
||||
private static Mobile m_ToMobile;
|
||||
private static Container m_FromCont;
|
||||
private static Container m_ToCont;
|
||||
private static Item m_ItemInFromCont;
|
||||
|
||||
// Global setup
|
||||
static ServerFixture()
|
||||
|
|
@ -23,24 +18,8 @@ namespace Server.Tests
|
|||
|
||||
// Load the world
|
||||
World.Load();
|
||||
|
||||
m_FromMobile = new Mobile(Serial.NewMobile);
|
||||
m_FromMobile.DefaultMobileInit();
|
||||
|
||||
m_ToMobile = new Mobile(Serial.NewMobile);
|
||||
m_ToMobile.DefaultMobileInit();
|
||||
|
||||
m_FromCont = new Container(Serial.NewItem);
|
||||
m_ToCont = new Container(Serial.NewItem);
|
||||
m_ItemInFromCont = new Item(Serial.NewItem) { Parent = m_FromCont };
|
||||
}
|
||||
|
||||
public Mobile fromMobile => m_FromMobile;
|
||||
public Mobile toMobile => m_ToMobile;
|
||||
public Container fromCont => m_FromCont;
|
||||
public Container toCont => m_ToCont;
|
||||
public Item itemInFromCont => m_ItemInFromCont;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue