From 997fee31ef73a3ff9595dbe7a896c1908a26e0e8 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Thu, 28 Oct 2004 12:30:08 +0000 Subject: [PATCH] 2004-10-28 Sebastien Pouliot * AuthenticodeDeformatterTest.cs: Check timestamp as an UTC value so that the test can work anywhere in the world (and not just at home ;) svn path=/trunk/mcs/; revision=35396 --- .../AuthenticodeDeformatterTest.cs | 2 +- .../Test/Mono.Security.Authenticode/ChangeLog | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/AuthenticodeDeformatterTest.cs b/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/AuthenticodeDeformatterTest.cs index fa708c3d6a8..d7e7df9dfca 100644 --- a/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/AuthenticodeDeformatterTest.cs +++ b/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/AuthenticodeDeformatterTest.cs @@ -702,7 +702,7 @@ namespace MonoTests.Mono.Security.Authenticode { // mean it's root is trusted on the current system Assert.IsTrue (((ad.Reason == 0) || (ad.Reason == 6)), "Reason"); Assert.AreEqual ("35-A5-21-3B-FC-FE-FA-40-97-AA-BB-DE-3B-52-15-6F", BitConverter.ToString (ad.Hash), "Hash"); - Assert.AreEqual (632011226700000000, ad.Timestamp.Ticks, "Timestamp"); + Assert.AreEqual (632011370700000000, ad.Timestamp.ToUniversalTime ().Ticks, "Timestamp"); Assert.AreEqual (4, ad.Certificates.Count, "#Certificates"); Assert.AreEqual ("C=ZA, S=Western Cape, L=Cape Town, O=Thawte Consulting cc, OU=Certification Services Division, CN=Thawte Server CA, E=server-certs@thawte.com", ad.SigningCertificate.IssuerName, "IssuerName"); Assert.AreEqual ("C=CA, S=Quebec, L=Quebec, O=Motus Technologies Inc., OU=Secure Application Development, CN=Motus Technologies Inc.", ad.SigningCertificate.SubjectName, "SubjectName"); diff --git a/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/ChangeLog b/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/ChangeLog index b18796ea903..f399e7b2993 100644 --- a/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/ChangeLog +++ b/mcs/class/Mono.Security/Test/Mono.Security.Authenticode/ChangeLog @@ -1,4 +1,9 @@ -2005-09-07 Sebastien Pouliot +2004-10-28 Sebastien Pouliot + + * AuthenticodeDeformatterTest.cs: Check timestamp as an UTC value so + that the test can work anywhere in the world (and not just at home ;) + +2004-09-07 Sebastien Pouliot * AuthenticodeDeformatterTest.cs: New. Unit tests to validate a valid authenticode-signed assembly (included in test file) and an invalid