Adds more unit tests (#133)

This commit is contained in:
Kamron Batman 2020-05-08 20:32:59 -07:00 • committed by GitHub
parent e138706536
commit 8278694105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 1406 additions and 996 deletions

View file

@ -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()
{
}