Esempio n. 1
0
        public void LasSectionhelpers_MaxMnemonicWidth_Pass()
        {
            var mnemonicLines = new LasMnemonicLine[] { new LasMnemonicLine {
                                                            Mnemonic = "MNEM"
                                                        } };

            Assert.AreEqual(4, mnemonicLines.MaxMnemonicWidth());
        }
Esempio n. 2
0
        public void LasSectionhelpers_MaxMnemonicWidth_Pass_EmptyMnemonic()
        {
            var mnemonicLines = new LasMnemonicLine[] { new LasMnemonicLine {
                                                            Mnemonic = string.Empty
                                                        } };

            Assert.AreEqual(0, mnemonicLines.MaxMnemonicWidth());
        }
Esempio n. 3
0
        public void LasSectionhelpers_MaxMnemonicWidth_Pass_NoMnemonic()
        {
            var mnemonicLines = new LasMnemonicLine[] { new LasMnemonicLine() };

            Assert.AreEqual(0, mnemonicLines.MaxMnemonicWidth());
        }
Esempio n. 4
0
        public void LasSectionhelpers_MaxMnemonicWidth_Pass_EmptyEnumerable()
        {
            var mnemonicLines = new LasMnemonicLine[0];

            Assert.AreEqual(0, mnemonicLines.MaxMnemonicWidth());
        }