internal Symbol(Librarian librarian, SIDC sidc, bool drawColorBars = true, bool drawCivilianFrame = false) { _librarian = librarian; _sidc = sidc; _colorBarOCA = drawColorBars; _useCivilianFrame = drawCivilianFrame; _legacySIDC = _blankLegacySIDC; _configHelper = new ConfigHelper(_librarian); _UpdateFromCurrent(); switch (_symbolStat) { case SymbolStatusEnum.statusEnumOld: _BuildLegacySIDC(); break; case SymbolStatusEnum.statusEnumNew: _legacySIDC = _blankLegacySIDC; break; } _BuildNames(); _BuildTags(); _BuildLabels(); _BuildDrawRule(); _BuildGraphics(); }
public void SIDCConstructorTest() { string partA = string.Empty; string partB = string.Empty; SIDC target = new SIDC(partA, partB); Assert.AreEqual(target.PartAString, "1001980000"); Assert.AreEqual(target.PartBString, "1000000000"); }
public void MakeSymbolTest() { string configPath = string.Empty; Librarian target = new Librarian(configPath); SIDC sidc = new SIDC(1003010000,1100000000); Symbol actual = null; actual = target.MakeSymbol(sidc); Assert.IsNotNull(actual, "Symbol object is null."); }
public Symbol MakeSymbol(SIDC sidc) { Symbol s = new Symbol(this, sidc, _drawColoredOCABars, _drawCivilianFrames); if (s.SymbolStatus == SymbolStatusEnum.statusEnumInvalid) { s = null; } return(s); }
public Symbol MakeSymbol(SIDC sidc) { Symbol s = new Symbol(this, sidc); if (s.SymbolStatus == SymbolStatusEnum.statusEnumInvalid) { s = null; } return(s); }
public Symbol MakeSymbol(UInt32 partA, UInt32 partB) { SIDC sid = new SIDC(partA, partB); Symbol s = new Symbol(this, sid, _drawColoredOCABars, _drawCivilianFrames); if (s.SymbolStatus == SymbolStatusEnum.statusEnumInvalid) { s = null; } return(s); }
public Symbol MakeSymbol(UInt32 partA, UInt32 partB) { SIDC sid = new SIDC(partA, partB); Symbol s = new Symbol(this, sid); if (s.SymbolStatus == SymbolStatusEnum.statusEnumInvalid) { s = null; } return(s); }
internal Symbol(Librarian librarian, SIDC sidc) { _librarian = librarian; _sidc = sidc; _legacySIDC = _blankLegacySIDC; _UpdateFromCurrent(); switch (_symbolStat) { case SymbolStatusEnum.statusEnumOld: _BuildLegacySIDC(); break; case SymbolStatusEnum.statusEnumNew: _legacySIDC = _blankLegacySIDC; break; } _BuildTags(); _BuildLabels(); _BuildDrawRule(); }
internal Symbol(Librarian librarian, SIDC sidc, bool drawColorBars = true, bool drawCivilianFrame = false) { _librarian = librarian; _sidc = sidc; _colorBarOCA = drawColorBars; _useCivilianFrame = drawCivilianFrame; _legacySIDC = _blankLegacySIDC; _configHelper = new ConfigHelper(_librarian); _UpdateFromCurrent(); switch (_symbolStat) { case SymbolStatusEnum.statusEnumOld: _BuildLegacySIDC(); break; case SymbolStatusEnum.statusEnumNew: _legacySIDC = _blankLegacySIDC; break; } _BuildNames(); _BuildTags(); _BuildLabels(); _BuildDrawRule(); _BuildGraphics(); }
public Symbol MakeSymbol(SIDC sidc) { Symbol s = new Symbol(this, sidc, _drawColoredOCABars, _drawCivilianFrames); if (s.SymbolStatus == SymbolStatusEnum.statusEnumInvalid) { s = null; } return s; }
public Symbol MakeSymbol(UInt32 partA, UInt32 partB) { SIDC sid = new SIDC(partA, partB); Symbol s = new Symbol(this, sid, _drawColoredOCABars, _drawCivilianFrames); if (s.SymbolStatus == SymbolStatusEnum.statusEnumInvalid) { s = null; } return s; }
public void PartAStringTest() { uint partA = 0; uint partB = 0; SIDC target = new SIDC(partA, partB); string expected = "1000980000"; string actual; target.PartAString = expected; actual = target.PartAString; Assert.AreEqual(expected, actual); }
public void SIDCConstructorTest1() { uint partA = 0; uint partB = 0; SIDC target = new SIDC(partA, partB); Assert.AreEqual(target.PartAUInt, (uint)1001980000); Assert.AreEqual(target.PartBUInt, (uint)1000000000); }
public void PartAUIntMixTest() { uint partA = 0; uint partB = 0; SIDC target = new SIDC(partA, partB); uint expected = 1000980000; string actual; target.PartAUInt = expected; actual = target.PartAString; Assert.AreEqual("1000980000", actual); }
public void PartBStringMixTest() { uint partA = 0; uint partB = 0; SIDC target = new SIDC(partA, partB); string expected = "1000000000"; uint actual; target.PartBString = expected; actual = target.PartBUInt; Assert.AreEqual((uint)1000000000, actual); }
public void PartBUIntTest() { uint partA = 0; uint partB = 0; SIDC target = new SIDC(partA, partB); uint expected = 1000000000; uint actual; target.PartBUInt = expected; actual = target.PartBUInt; Assert.AreEqual(expected, actual); }