22 lines
556 B
C#
22 lines
556 B
C#
using GameHandler.Exceptions;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using GameHandler.Extensions;
|
|
|
|
namespace GameHandler.UnitTests.Extensions
|
|
{
|
|
[TestFixture]
|
|
internal class GameServiceExtensionTests
|
|
{
|
|
[Test]
|
|
public void GetGameHandler_ThrowsExceptionWhenGamenameIsNotValid()
|
|
{
|
|
var gs = new GameService();
|
|
Assert.That(() => gs.GetGameHandler("unknown"), Throws.TypeOf<InvaildGameNameException>());
|
|
}
|
|
}
|
|
}
|