Esempio n. 1
0
        public void Initializes_Basic_Handlers()
        {
            var mockSerialProvider = new Mock <ISerialProvider>();
            var stubBase           = new StubFirmataBase(mockSerialProvider.Object);

            // These numbers should reflect the number of creators and handlers in
            // the Sharpduino.Base.Handlers and the Sharpduino.Base.Creators namespace
            // if we put others (maybe in a new protocol version) this test should fail
            Assert.AreEqual(9, stubBase.Handlers.Count);
            Assert.AreEqual(16, stubBase.Creators.Count);
        }
Esempio n. 2
0
        public void Initializes_Basic_Handlers()
        {
            var mockSerialProvider = new Mock<ISerialProvider>();
            var stubBase = new StubFirmataBase(mockSerialProvider.Object);

            // These numbers should reflect the number of creators and handlers in
            // the Sharpduino.Base.Handlers and the Sharpduino.Base.Creators namespace
            // if we put others (maybe in a new protocol version) this test should fail
            Assert.AreEqual(9,stubBase.Handlers.Count);
            Assert.AreEqual(16,stubBase.Creators.Count);
        }