Пример #1
0
        public PortPainter CreatePortPainter(PortDefenition portDef, double X, double Y)
        {
            String      portName    = NameUtils.GetInterfaceName(portDef);
            PortPainter portPainter = new PortPainter(portDef.GUID, X, Y, portName);

            return(portPainter);
        }
Пример #2
0
        public void Interface_Name_Formatter(string input, string expected)
        {
            // act
            string output = NameUtils.GetInterfaceName(input);

            // assert
            Assert.Equal(expected, output);
        }
Пример #3
0
        public void Convert_Interface_Snail_Name(string input, string expected)
        {
            // act
            string output = NameUtils.GetInterfaceName(input);

            // assert
            Assert.Equal(expected, output);
        }