public void TestNameConversion() { var rawName = new Name { Type = "NameType", SortIndex = 2, value = "Name value" }; var name = new BGGThings.Name(rawName); Assert.AreEqual("NameType", name.Type); Assert.AreEqual(2, name.SortIndex); Assert.AreEqual("Name value", name.Value); }
public Name(Raw.Things.Name rawName) { Type = rawName.Type; SortIndex = rawName.SortIndex; Value = rawName.value; }