using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.VisualStudio.TestTools.UnitTesting; using Tensorflow; namespace TensorFlowNET.UnitTest { /// /// Use as base class for test classes to get additional assertions /// public class PythonTest : Python { public void assertItemsEqual(ICollection expected, ICollection given) { Assert.IsNotNull(expected); Assert.IsNotNull(given); var e = expected.OfType().ToArray(); var g = given.OfType().ToArray(); Assert.AreEqual(e.Length, g.Length, $"The collections differ in length expected {e.Length} but got {g.Length}"); for(int i=0; i this; } } }