public void RandomGeneratorTester() { int testCount = 10; string dialog = string.Empty; bool hasDifferent = false; for (int i = 0; i < testCount; i++) { Dialog randomDialog = DialogFactory.GetDialogPool(DialogTypeEnum.Greeting).PickOne(); string currentDialog = randomDialog.Items.FirstOrDefault().Content; if (!string.IsNullOrEmpty(dialog) && dialog != currentDialog) { hasDifferent = true; } dialog = currentDialog; } Assert.IsTrue(hasDifferent); }