Exemplo n.º 1
0
        public void ItParsesValuesProperly()
        {
            var expected = new DevicePowerChanged();
            var actual   = EventTypeParser.Parse("Device Power Changed");

            Assert.That(actual.GetType(), Is.EqualTo(expected.GetType()));
        }
Exemplo n.º 2
0
 public void ItThrowsExceptionsWhenParsingValidInput(string input)
 {
     EventTypeParser.Parse(input);
 }
Exemplo n.º 3
0
 public static IEventType ToEventType(this IParameter parameter)
 {
     return(EventTypeParser.Parse(parameter.Value));
 }