public static void Test_Throws_Exception_On_Null_Payload_Status() { //arrange NetworkMessageFactory factory = new NetworkMessageFactory(); //assert Assert.Throws<ArgumentNullException>(() => factory.CreateStatusMessage(null)); }
public static void Test_Works_On_Valid_Payload_Event() { //arrange NetworkMessageFactory factory = new NetworkMessageFactory(); //act EventMessage message = factory.CreateEventMessage(Mock.Of<PacketPayload>()); //assert Assert.NotNull(message); }
public static void Test_Works_On_Valid_Payload_Status() { //arrange NetworkMessageFactory factory = new NetworkMessageFactory(); //act StatusMessage message = factory.CreateStatusMessage(Mock.Of<StatusChangePayload>()); //assert Assert.NotNull(message); }