leshkacat (2) [Avatar] Offline
#1
using MyLib.TableMethod;

...

[Test]
public void TestTableMethod() {
//Arrange
	Table<String> checkTable = TableFactory.CreateStringsTable(
		"lang|first_letter|last_letter",
		"English|A|Z",
		"Russian|?|?",
		"Digits|0|9"
	);
	
	foreach( Row<String> checkRow in checkTable ) {
		// Action
		ABC abc = ABC.CreateByLang( checkRow["lang"] );
		
		// Assertions
		Assert.AreEqual( checkRow["first_letter"][0], abc.GetFirstLetter() );
		Assert.AreEqual( checkRow["last_letter"][0], abc.GetLastLetter() );
	}
}