public void FindsOidValue(string oidValue, string expectedName)
        {
            Oid          oid    = new Oid(oidValue);
            KeyCurveName actual = KeyCurveName.FromOid(oid, 0);

            Assert.AreEqual(expectedName, actual.ToString());
        }
        public void FindsOidFriendName(string oidFriendlyName, int keySize, string expectedName)
        {
            Oid          oid    = new Oid(null, oidFriendlyName);
            KeyCurveName actual = KeyCurveName.FromOid(oid, keySize);

            Assert.AreEqual(expectedName, actual.ToString());
        }
        public void StringCastLooksUpValueOrDefaults(string name, string expectedOidValue, int expectedKeySize, int expectedKeyParameterSize)
        {
            KeyCurveName actual = name;

            Assert.AreEqual(name, actual.ToString());
            Assert.AreEqual(expectedOidValue, actual.Oid?.Value);
            Assert.AreEqual(expectedKeySize, actual.KeySize);
            Assert.AreEqual(expectedKeyParameterSize, actual.KeyParameterSize);
        }