public void TestNotAllowMetalWorker() { GameObject placeholder = new GameObject(); WorkerManager wm = placeholder.AddComponent <WorkerManager>(); Assert.False(wm.AllowWorker(ResourceType.Metal)); }
public void TestAllowWoodWorker() { GameObject placeholder = new GameObject(); WorkerManager wm = placeholder.AddComponent <WorkerManager>(); wm.WoodHutBuild(); Assert.True(wm.AllowWorker(ResourceType.Wood)); }