From 66fc5123d01d25a54f02cbf867f5e8313c9c350f Mon Sep 17 00:00:00 2001 From: dwnichols Date: Tue, 13 Dec 2016 16:08:02 -0500 Subject: [PATCH] Fix test TestDStreamUpdateStateByKey to use Tuples --- csharp/AdapterTest/DStreamTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csharp/AdapterTest/DStreamTest.cs b/csharp/AdapterTest/DStreamTest.cs index 90281eb..c6a363b 100644 --- a/csharp/AdapterTest/DStreamTest.cs +++ b/csharp/AdapterTest/DStreamTest.cs @@ -281,8 +281,8 @@ namespace AdapterTest foreach (object record in taken) { - KeyValuePair countByWord = (KeyValuePair)record; - Assert.AreEqual(countByWord.Key == "The" || countByWord.Key == "dog" || countByWord.Key == "lazy" ? 23 : 22, countByWord.Value); + Tuple countByWord = (Tuple)record; + Assert.AreEqual(countByWord.Item1 == "The" || countByWord.Item1 == "dog" || countByWord.Item1 == "lazy" ? 23 : 22, countByWord.Item2); } });