Ejemplo n.º 1
0
        public void UnknownState_Equals_UnknownState()
        {
            IComponentState state1 = new UnknownComponentState();
            IComponentState state2 = new UnknownComponentState();

            state1.Equals(state2).ShouldBeEquivalentTo(true);
        }
        public void UnknownState_Serialize()
        {
            IComponentState state     = new UnknownComponentState();
            IJsonValue      jsonValue = state.ToJsonValue();

            jsonValue.ValueType.ShouldBeEquivalentTo(JsonValueType.Null);
        }
Ejemplo n.º 3
0
        public void UnknownState_NotEquals_DifferentState()
        {
            IComponentState state1 = new UnknownComponentState();
            IComponentState state2 = new NumericSensorValue(5);

            state1.Equals(state2).ShouldBeEquivalentTo(false);
        }