public void TestGetName() { var block = new ConvolutionBlock(); Assert.AreEqual(block.Name, BlockBase.GetName(block.GetType())); Assert.AreEqual("ConvolutionBlock", block.GetAssemblyClassName()); Assert.AreEqual("", BlockBase.GetName(typeof(Object))); Assert.AreEqual("", BlockBase.GetName(typeof(BlockBase))); Assert.AreEqual(true, block.HasParameters()); var block2 = new InvertBlock(); Assert.AreEqual(false, block2.HasParameters()); }