Outgoing Packet Tests (Pass #1) (#129)

This commit is contained in:
Kamron Batman 2020-05-04 01:34:51 -07:00 committed by GitHub
parent 11227391d3
commit d9f417ee19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 1084 additions and 381 deletions

View file

@ -1,13 +1,19 @@
using System;
using Server.Items;
using Server.Misc;
namespace Server.Tests
{
public class ServerFixture : IDisposable
{
public Mobile mobile { get; }
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;
public ServerFixture()
// Global setup
static ServerFixture()
{
// Load Configurations
ServerConfiguration.Load(true);
@ -15,11 +21,26 @@ namespace Server.Tests
// Configure / Initialize
MapDefinitions.Configure();
// Load the world
World.Load();
mobile = new Mobile(0x1);
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()
{
}