public void WhenLoadingInvalidPath_ShouldThrow() { Assert.Catch <ToolPrefabNotFoundException>( () => PlayerToolSelector .LoadToolPrefab(new Dictionary <ushort, string> { { 1, "Prefabs/Invalid" } }, 1)); }
public void WhenLoadingInvalidToolId_ShouldThrow() { Assert.Catch <NoPathForToolIdException>(() => PlayerToolSelector.LoadToolPrefab(ToolResourcePaths.Paths, 532)); }
public void WhenLoadingValidToolId_ShouldGetObject() { Assert.IsNotNull(PlayerToolSelector.LoadToolPrefab(ToolResourcePaths.Paths, 1)); }