public virtual void TestParseVersionName() { Assert.Equal("/a/b", KeyProvider.GetBaseName("/a/b@3")); Assert.Equal("/aaa", KeyProvider.GetBaseName("/aaa@112")); try { KeyProvider.GetBaseName("no-slashes"); Assert.True("should have thrown", false); } catch (IOException) { Assert.True(true); } }