public void ToString_Preparation_ResultAsExpected() { TestToken actual = this.CreateInstance() as TestToken; actual.Initialize(42, 23, "Marker", "Symbol", "Lining", "Format"); Assert.That(actual.ToString(), Is.EqualTo("Type: TestToken, Offset: [42], Rating: [23], Symbol: [Symbol], Lining: [Lining], Format: [Format], Marker: [Marker]")); }
public void Properties_Preparation_PropertiesAsExpected() { TestToken actual = this.CreateInstance() as TestToken; actual.Initialize(42, 23, "Marker", "Symbol", "Lining", "Format"); Assert.That(actual.Offset, Is.EqualTo(42)); Assert.That(actual.Rating, Is.EqualTo(23)); Assert.That(actual.Marker, Is.EqualTo("Marker")); Assert.That(actual.Symbol, Is.EqualTo("Symbol")); Assert.That(actual.Lining, Is.EqualTo("Lining")); Assert.That(actual.Format, Is.EqualTo("Format")); Assert.That(actual.IsNumbering, Is.False); Assert.That(actual.IsStringify, Is.False); Assert.That(actual.IsSpreading, Is.False); }