2021-08-11 11:06:46 +03:00
|
|
|
using System;
|
2016-12-02 16:13:25 +03:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|