diff --git a/src/Tests/BirdsiteLive.ActivityPub.Tests/ApDeserializerTests.cs b/src/Tests/BirdsiteLive.ActivityPub.Tests/ApDeserializerTests.cs index ff6cd47..3c85113 100644 --- a/src/Tests/BirdsiteLive.ActivityPub.Tests/ApDeserializerTests.cs +++ b/src/Tests/BirdsiteLive.ActivityPub.Tests/ApDeserializerTests.cs @@ -48,13 +48,13 @@ namespace BirdsiteLive.ActivityPub.Tests Assert.AreEqual("https://mamot.fr/users/testtest", data.apObject.apObject); } - [TestMethod] - public void NoteDeserializationTest() - { - var json = - "{\"@context\":[\"https://www.w3.org/ns/activitystreams\",{\"ostatus\":\"http://ostatus.org#\",\"atomUri\":\"ostatus:atomUri\",\"inReplyToAtomUri\":\"ostatus:inReplyToAtomUri\",\"conversation\":\"ostatus:conversation\",\"sensitive\":\"as:sensitive\",\"toot\":\"http://joinmastodon.org/ns#\",\"votersCount\":\"toot:votersCount\"}],\"id\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182/activity\",\"type\":\"Create\",\"actor\":\"https://mastodon.technology/users/testtest\",\"published\":\"2020-06-29T02:10:04Z\",\"to\":[\"https://mastodon.technology/users/testtest/followers\"],\"cc\":[],\"object\":{\"id\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182\",\"type\":\"Note\",\"summary\":null,\"inReplyTo\":null,\"published\":\"2020-06-29T02:10:04Z\",\"url\":\"https://mastodon.technology/@testtest/104424839893177182\",\"attributedTo\":\"https://mastodon.technology/users/testtest\",\"to\":[\"https://mastodon.technology/users/testtest/followers\"],\"cc\":[],\"sensitive\":false,\"atomUri\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182\",\"inReplyToAtomUri\":null,\"conversation\":\"tag:mastodon.technology,2020-06-29:objectId=34900058:objectType=Conversation\",\"content\":\"
test
\",\"contentMap\":{\"en\":\"test
\"},\"attachment\":[],\"tag\":[],\"replies\":{\"id\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182/replies\",\"type\":\"Collection\",\"first\":{\"type\":\"CollectionPage\",\"next\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182/replies?only_other_accounts=true&page=true\",\"partOf\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182/replies\",\"items\":[]}}}}"; + //[TestMethod] + //public void NoteDeserializationTest() + //{ + // var json = + // "{\"@context\":[\"https://www.w3.org/ns/activitystreams\",{\"ostatus\":\"http://ostatus.org#\",\"atomUri\":\"ostatus:atomUri\",\"inReplyToAtomUri\":\"ostatus:inReplyToAtomUri\",\"conversation\":\"ostatus:conversation\",\"sensitive\":\"as:sensitive\",\"toot\":\"http://joinmastodon.org/ns#\",\"votersCount\":\"toot:votersCount\"}],\"id\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182/activity\",\"type\":\"Create\",\"actor\":\"https://mastodon.technology/users/testtest\",\"published\":\"2020-06-29T02:10:04Z\",\"to\":[\"https://mastodon.technology/users/testtest/followers\"],\"cc\":[],\"object\":{\"id\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182\",\"type\":\"Note\",\"summary\":null,\"inReplyTo\":null,\"published\":\"2020-06-29T02:10:04Z\",\"url\":\"https://mastodon.technology/@testtest/104424839893177182\",\"attributedTo\":\"https://mastodon.technology/users/testtest\",\"to\":[\"https://mastodon.technology/users/testtest/followers\"],\"cc\":[],\"sensitive\":false,\"atomUri\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182\",\"inReplyToAtomUri\":null,\"conversation\":\"tag:mastodon.technology,2020-06-29:objectId=34900058:objectType=Conversation\",\"content\":\"test
\",\"contentMap\":{\"en\":\"test
\"},\"attachment\":[],\"tag\":[],\"replies\":{\"id\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182/replies\",\"type\":\"Collection\",\"first\":{\"type\":\"CollectionPage\",\"next\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182/replies?only_other_accounts=true&page=true\",\"partOf\":\"https://mastodon.technology/users/testtest/statuses/104424839893177182/replies\",\"items\":[]}}}}"; - var data = ApDeserializer.ProcessActivity(json) as ActivityAcceptFollow; - } + // var data = ApDeserializer.ProcessActivity(json) as ActivityAcceptFollow; + //} } } \ No newline at end of file diff --git a/src/Tests/BirdsiteLive.Cryptography.Tests/RsaKeysTests.cs b/src/Tests/BirdsiteLive.Cryptography.Tests/RsaKeysTests.cs index 50c77b9..2e4ae5e 100644 --- a/src/Tests/BirdsiteLive.Cryptography.Tests/RsaKeysTests.cs +++ b/src/Tests/BirdsiteLive.Cryptography.Tests/RsaKeysTests.cs @@ -1,34 +1,34 @@ -using System.Security.Cryptography; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using MyProject.Data.Encryption; +//using System.Security.Cryptography; +//using Microsoft.VisualStudio.TestTools.UnitTesting; +//using MyProject.Data.Encryption; -namespace BirdsiteLive.Cryptography.Tests -{ - [TestClass] - public class RsaKeysTests - { - [TestMethod] - public void TestMethod1() - { - var rsa = RSA.Create(); +//namespace BirdsiteLive.Cryptography.Tests +//{ +// [TestClass] +// public class RsaKeysTests +// { +// [TestMethod] +// public void TestMethod1() +// { +// var rsa = RSA.Create(); - var cspParams = new CspParameters(); - cspParams.ProviderType = 1; // PROV_RSA_FULL - cspParams.Flags = CspProviderFlags.CreateEphemeralKey; - var rsaProvider = new RSACryptoServiceProvider(2048, cspParams); +// var cspParams = new CspParameters(); +// cspParams.ProviderType = 1; // PROV_RSA_FULL +// cspParams.Flags = CspProviderFlags.CreateEphemeralKey; +// var rsaProvider = new RSACryptoServiceProvider(2048, cspParams); - var rsaPublicKey = RSAKeys.ExportPublicKey(rsaProvider); - var rsaPrivateKey = RSAKeys.ExportPrivateKey(rsaProvider); +// var rsaPublicKey = RSAKeys.ExportPublicKey(rsaProvider); +// var rsaPrivateKey = RSAKeys.ExportPrivateKey(rsaProvider); - //rsaProvider. +// //rsaProvider. - var pem = RSAKeys.ImportPublicKey(rsaPrivateKey); - } +// var pem = RSAKeys.ImportPublicKey(rsaPrivateKey); +// } - [TestMethod] - public void TestMethod2() - { +// [TestMethod] +// public void TestMethod2() +// { - } - } -} \ No newline at end of file +// } +// } +//} \ No newline at end of file