xamarin-macios/tests/monotouch-test/mono/ConfigTest.cs

24 строки
524 B
C#
Исходник Обычный вид История

using System;
using System.IO;
using System.Reflection;
using Foundation;
using NUnit.Framework;
namespace MonoTouchFixtures
{
[TestFixture]
[Preserve (AllMembers = true)]
public partial class ConfigTest
{
[Test]
public void Existence ()
{
var config_file = Assembly.GetExecutingAssembly ().Location + ".config";
Assert.True (File.Exists (config_file), "existence");
Assert.That (File.ReadAllText (config_file), Contains.Substring ("<secretMessage>Xamarin rocks</secretMessage>"), "content");
}
}
}