1 // ****************************************************************
\r
2 // Copyright 2007, Charlie Poole
\r
3 // This is free software licensed under the NUnit license. You may
\r
4 // obtain a copy of the license at http://nunit.org/?p=license&r=2.4
\r
5 // ****************************************************************
\r
9 namespace NUnit.Fixtures
\r
12 /// PlatformFixture simply displays info about the platform
\r
13 /// we are running on.
\r
15 public class PlatformInfo : fit.Fixture
\r
17 public override void doTable(fit.Parse table)
\r
20 tr( td( "platform", td( Environment.OSVersion.ToString(), null ) ),
\r
21 tr( td( "clrVersion", td( Environment.Version.ToString(), null ) ),
\r
26 private fit.Parse tr( fit.Parse parts, fit.Parse more)
\r
28 return new fit.Parse ("tr", null, parts, more);
\r
31 private fit.Parse td(string body, fit.Parse more)
\r
33 return new fit.Parse ("td", info(body), null, more);
\r