Skip to content

Commit

Permalink
[msbuild] Put all the MSBuild tests in the same namespace. (#15919)
Browse files Browse the repository at this point in the history
I always have to look through all the namespaces to figure out where a
specific test is, so this simplifies things a bit.

It's also where the tasks themselves are headed at some point.
  • Loading branch information
rolfbjarne authored Sep 12, 2022
1 parent b353c21 commit c63f238
Show file tree
Hide file tree
Showing 54 changed files with 59 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Xamarin.Tests;
using System.Linq;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class FrameworkListTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
using Xamarin.iOS.Tasks;

namespace Xamarin.MacDev.Tasks {
[TestFixture]
public class CollectITunesArtworkTaskTests : TestBase {
string AppPath => Path.GetDirectoryName (GetType ().Assembly.Location);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using Xamarin.MacDev.Tasks;
using Xamarin.Utils;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture]
public class CompileAppManifestTaskTests : TestBase {
CompileAppManifest CreateTask (string? tmpdir = null, ApplePlatform platform = ApplePlatform.iOS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xamarin.MacDev.Tasks;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public abstract class GeneratePlistTaskTests_Core : TestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using NUnit.Framework;
using Xamarin.MacDev;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class GeneratePlistTaskTests_iOS : GeneratePlistTaskTests_Core
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NUnit.Framework;
using Xamarin.MacDev;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class GeneratePlistTaskTests_iOS_AppExtension : GeneratePlistTaskTests_iOS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NUnit.Framework;
using Xamarin.MacDev;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class GeneratePlistTaskTests_tvOS : GeneratePlistTaskTests_Core
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using NUnit.Framework;
using Xamarin.MacDev;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public abstract class GeneratePlistTaskTests_watchOS: GeneratePlistTaskTests_Core
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using NUnit.Framework;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class GeneratePlistTaskTests_watchOS_WatchKitApp : GeneratePlistTaskTests_watchOS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using NUnit.Framework;
using Xamarin.MacDev;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class GeneratePlistTaskTests_watchOS_WatchKitExtension : GeneratePlistTaskTests_watchOS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using Xamarin.MacDev.Tasks;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class GetBundleNameTaskTests : TestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using Xamarin.Tests;
using Xamarin.Utils;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class IBToolTaskTests : TestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Xamarin.iOS.Tasks;
using Xamarin.Tests;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture]
public class LocalizationStringTest : TestBase {
[TestCase ("cs-CZ", "došlo k chybě: neznámý formát image")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
using Microsoft.Build.Utilities;

using NUnit.Framework;

using Xamarin.iOS.Tasks;
using Xamarin.MacDev;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
class CustomMTouchTask : MTouch
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using Xamarin.MacDev.Tasks;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class ParseBundlerArgumentsTests : TestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Xamarin.MacDev;
using Xamarin.MacDev.Tasks;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class PropertyListEditorTaskTests : TestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using Microsoft.Build.Framework;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
public class Logger : ILogger
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using Xamarin.Tests;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
public abstract class TestBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Build.Evaluation;
using Microsoft.Build.Logging;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{

public class TestEngine : IBuildEngine, IBuildEngine2, IBuildEngine3, IBuildEngine4
Expand Down
2 changes: 1 addition & 1 deletion tests/msbuild/Xamarin.MacDev.Tasks.Tests/UtilityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Xamarin.MacDev.Tasks;
using Xamarin.Utils;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class UtilityTests
Expand Down
2 changes: 1 addition & 1 deletion tests/msbuild/Xamarin.MacDev.Tests/DotnetTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {

// This test builds test projects using both MSBuild (old-style) and .NET (new-style), and
// compares the resulting .app directories.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.IO;
using Xamarin.Tests;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using Xamarin.Tests;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
public class BindingReferences : TestBase {

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using NUnit.Framework;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture]
public class Bug60536 : ProjectTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xamarin.MacDev;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture ("iPhone", "Debug")]
[TestFixture ("iPhone", "Release")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xamarin.Tests;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
// [TestFixture ("iPhone")] // Skip this to speed things up a bit.
[TestFixture ("iPhoneSimulator")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

using NUnit.Framework;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using Xamarin.Tests;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class EmbeddedExtension : ProjectTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class ActionTests : ExtensionTestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using NUnit.Framework;
using System.Linq;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class CustomKeyboardTests : ExtensionTestBase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class DocumentPickerTests : ExtensionTestBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using Xamarin.Tests;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
public class ExtensionTestBase : TestBase {
public ExtensionTestBase () { }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class PhotoEditingTests : ExtensionTestBase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhoneSimulator")]
[TestFixture ("iPhone")]
public class ShareTests : ExtensionTestBase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class TodayTests : ExtensionTestBase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class WatchKit : ExtensionTestBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using NUnit.Framework;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class WatchKit2 : ExtensionTestBase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using NUnit.Framework;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using NUnit.Framework;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using Xamarin.Tests;

namespace Xamarin.iOS.Tasks {
namespace Xamarin.MacDev.Tasks {
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
public class NativeReferencesTests : ProjectTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Xamarin.Tests;
using Xamarin.Utils;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using Xamarin.Tests;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
[TestFixture ("iPhone")]
[TestFixture ("iPhoneSimulator")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using Xamarin.Tests;

namespace Xamarin.iOS.Tasks
namespace Xamarin.MacDev.Tasks
{
public class ProjectTest : TestBase {
public ProjectTest (string platform)
Expand Down
Loading

5 comments on commit c63f238

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.