Fix missing semicolons and periods
This commit is contained in:
Родитель
07cd0e7268
Коммит
3d4dce2c0a
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenter
|
||||
using Microsoft.AppCenter;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Contoso.Forms.Demo
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenter
|
||||
using Microsoft.AppCenter;
|
||||
using Microsoft.AppCenter.Distribute;
|
||||
using Microsoft.AppCenter.Push;
|
||||
using Xamarin.Forms;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterUtils
|
||||
namespace Microsoft.AppCenter.Utils
|
||||
{
|
||||
public class DefaultScreenSizeProviderFactory : IScreenSizeProviderFactory
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterUtils
|
||||
namespace Microsoft.AppCenter.Utils
|
||||
{
|
||||
public interface IScreenSizeProviderFactory
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterChannel
|
||||
namespace Microsoft.AppCenter.Channel
|
||||
{
|
||||
/* Capability interface for having an app secret */
|
||||
public interface IAppSecretHolder
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterChannel
|
||||
namespace Microsoft.AppCenter.Channel
|
||||
{
|
||||
public interface IChannelGroupFactory
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterIngestion.Models;
|
||||
using Microsoft.AppCenter.Ingestion.Models;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AppCenter.Channel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterChannel;
|
||||
using Microsoft.AppCenter.Channel;
|
||||
|
||||
namespace Microsoft.AppCenter
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterIngestion.Models
|
||||
namespace Microsoft.AppCenter.Ingestion.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception thrown when ingestion models fail to validate
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterUtils
|
||||
namespace Microsoft.AppCenter.Utils
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a store of persistent application settings that is behaves like a dictionary.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterUtils
|
||||
namespace Microsoft.AppCenter.Utils
|
||||
{
|
||||
public interface IApplicationSettingsFactory
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterUtils.Synchronization
|
||||
namespace Microsoft.AppCenter.Utils.Synchronization
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a particular state
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterAnalytics.Channel
|
||||
namespace Microsoft.AppCenter.Analytics.Channel
|
||||
{
|
||||
public interface ISessionTracker
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterChannel;
|
||||
using Microsoft.AppCenter.Channel;
|
||||
using Microsoft.AppCenter.Utils;
|
||||
|
||||
namespace Microsoft.AppCenter.Analytics.Channel
|
||||
|
|
|
@ -7,7 +7,7 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Microsoft.AppCenter.Analytics.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
/// <summary>
|
||||
/// Event log.
|
||||
|
|
|
@ -7,7 +7,7 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Microsoft.AppCenter.Analytics.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
/// <summary>
|
||||
/// Page view log (as in screens or activities).
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.AppCenter.Ingestion.Models;
|
|||
|
||||
namespace Microsoft.AppCenter.Analytics.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
/// <summary>
|
||||
/// Required explicit begin session log (a marker event for analytics
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterCrashes
|
||||
namespace Microsoft.AppCenter.Crashes
|
||||
{
|
||||
/// <summary>
|
||||
/// Error report details pertinent only to devices running Android.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterCrashes
|
||||
namespace Microsoft.AppCenter.Crashes
|
||||
{
|
||||
/// <summary>
|
||||
/// Error attachment for error report.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterCrashes
|
||||
namespace Microsoft.AppCenter.Crashes
|
||||
{
|
||||
/// <summary>
|
||||
/// Crashes SDK module.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterCrashes
|
||||
namespace Microsoft.AppCenter.Crashes
|
||||
{
|
||||
/// <summary>
|
||||
/// User confirmation options for whether to send crash reports.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterCrashes
|
||||
namespace Microsoft.AppCenter.Crashes
|
||||
{
|
||||
/// <summary>
|
||||
/// Error report details pertinent only to devices running iOS.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterCrashes
|
||||
namespace Microsoft.AppCenter.Crashes
|
||||
{
|
||||
public partial class ErrorAttachmentLog
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterCrashes
|
||||
namespace Microsoft.AppCenter.Crashes
|
||||
{
|
||||
public partial class ErrorAttachmentLog
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterDistribute
|
||||
namespace Microsoft.AppCenter.Distribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Release available callback.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterDistribute
|
||||
namespace Microsoft.AppCenter.Distribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Distribute SDK module.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterDistribute
|
||||
namespace Microsoft.AppCenter.Distribute
|
||||
{
|
||||
/// <summary>
|
||||
/// User update action.
|
||||
|
|
|
@ -4,7 +4,7 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Microsoft.AppCenter.Push.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
[JsonObject(JsonIdentifier)]
|
||||
public class PushInstallationLog : Log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterChannel;
|
||||
using Microsoft.AppCenter.Channel;
|
||||
using Microsoft.AppCenter.Ingestion.Models.Serialization;
|
||||
using Microsoft.AppCenter.Push.Ingestion.Models;
|
||||
using Microsoft.AppCenter.Utils.Synchronization;
|
||||
|
|
|
@ -6,7 +6,7 @@ using Moq;
|
|||
|
||||
namespace Microsoft.AppCenter.Test.Windows.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
[TestClass]
|
||||
public class PageLogTest
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterAnalytics.Channel;
|
||||
using Microsoft.AppCenter.Analytics.Channel;
|
||||
using Microsoft.AppCenter.Channel;
|
||||
using Microsoft.AppCenter.Utils;
|
||||
using Moq;
|
||||
|
|
|
@ -90,7 +90,6 @@
|
|||
<Compile Include="AppCenterPart.cs" />
|
||||
<Compile Include="NetworkStateAdapter.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="WatsonCrashesStarter.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterPush
|
||||
namespace Microsoft.AppCenter.Push
|
||||
{
|
||||
public partial class Push : AppCenterService
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ using Moq;
|
|||
|
||||
namespace Microsoft.AppCenter.Test.Windows.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
[TestClass]
|
||||
public class PushInstallationLogTest
|
||||
|
|
|
@ -134,18 +134,10 @@
|
|||
<Project>{200073bf-fa7e-42af-8ed5-aa50be7c0295}</Project>
|
||||
<Name>Microsoft.AppCenter.Analytics.UWP</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\SDK\AppCenterAnalytics\Microsoft.AppCenter.Analytics\Microsoft.AppCenter.Analytics.csproj">
|
||||
<Project>{0f13e444-717e-460a-bde7-8ad537f0a418}</Project>
|
||||
<Name>Microsoft.AppCenter.Analytics</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\SDK\AppCenterCrashes\Microsoft.AppCenter.Crashes.UWP\Microsoft.AppCenter.Crashes.UWP.csproj">
|
||||
<Project>{2f715d51-643c-4f7f-9ea4-6554d4eeccb2}</Project>
|
||||
<Name>Microsoft.AppCenter.Crashes.UWP</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\SDK\AppCenterCrashes\Microsoft.AppCenter.Crashes\Microsoft.AppCenter.Crashes.csproj">
|
||||
<Project>{302f0881-77ae-4cce-acf4-930ad5d4fb08}</Project>
|
||||
<Name>Microsoft.AppCenter.Crashes</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\SDK\AppCenterCrashes\WatsonRegistrationUtility\WatsonRegistrationUtility.vcxproj">
|
||||
<Project>{b977bf28-3a1c-4a89-a673-a22eddc9d23d}</Project>
|
||||
<Name>WatsonRegistrationUtility</Name>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterUtils;
|
||||
using Microsoft.AppCenter.Utils;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Windows.Storage;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterUtils;
|
||||
using Microsoft.AppCenter.Utils;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Moq;
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterUtils;
|
||||
using Microsoft.AppCenter.Utils;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Moq;
|
||||
using System;
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace Microsoft.AppCenter.Test.Channel
|
|||
{
|
||||
const string channelName = "some_channel";
|
||||
var addedChannel =
|
||||
_channelGroup.AddChannel(channelName, 2, TimeSpan.FromSeconds(3), 3) as Mobile.Channel.Channel;
|
||||
_channelGroup.AddChannel(channelName, 2, TimeSpan.FromSeconds(3), 3) as Microsoft.AppCenter.Channel.Channel;
|
||||
|
||||
Assert.IsNotNull(addedChannel);
|
||||
Assert.AreEqual(channelName, addedChannel.Name);
|
||||
|
@ -173,7 +173,7 @@ namespace Microsoft.AppCenter.Test.Channel
|
|||
{
|
||||
const string channelName = "some_channel";
|
||||
var addedChannel =
|
||||
_channelGroup.AddChannel(channelName, 2, TimeSpan.FromSeconds(3), 3) as Mobile.Channel.Channel;
|
||||
_channelGroup.AddChannel(channelName, 2, TimeSpan.FromSeconds(3), 3) as Microsoft.AppCenter.Channel.Channel;
|
||||
|
||||
_channelGroup.ShutdownAsync().RunNotAsync();
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@ namespace Microsoft.AppCenter.Test.Channel
|
|||
[TestClass]
|
||||
public class ChannelTest
|
||||
{
|
||||
private Mobile.Channel.Channel _channel;
|
||||
private Microsoft.AppCenter.Channel.Channel _channel;
|
||||
private readonly MockIngestion _mockIngestion = new MockIngestion();
|
||||
private IStorage _storage = new Mobile.Storage.Storage();
|
||||
private IStorage _storage = new Microsoft.AppCenter.Storage.Storage();
|
||||
|
||||
private const string ChannelName = "channelName";
|
||||
private const int MaxLogsPerBatch = 3;
|
||||
|
@ -238,7 +238,7 @@ namespace Microsoft.AppCenter.Test.Channel
|
|||
storage.Setup(s => s.DeleteLogs(It.IsAny<string>(), It.IsAny<string>())).Throws<StorageException>();
|
||||
storage.Setup(s => s.GetLogsAsync(It.IsAny<string>(), It.IsAny<int>(), It.IsAny<List<Log>>())).Returns(Task.FromResult(""));
|
||||
|
||||
Mobile.Channel.Channel channel = new Mobile.Channel.Channel("name", 1, _batchTimeSpan, 1, _appSecret, _mockIngestion, storage.Object);
|
||||
Microsoft.AppCenter.Channel.Channel channel = new Microsoft.AppCenter.Channel.Channel("name", 1, _batchTimeSpan, 1, _appSecret, _mockIngestion, storage.Object);
|
||||
|
||||
// Shutdown channel and store some log
|
||||
channel.ShutdownAsync().RunNotAsync();
|
||||
|
@ -289,9 +289,9 @@ namespace Microsoft.AppCenter.Test.Channel
|
|||
|
||||
private void SetChannelWithTimeSpan(TimeSpan timeSpan)
|
||||
{
|
||||
_storage = new Mobile.Storage.Storage();
|
||||
_storage = new Microsoft.AppCenter.Storage.Storage();
|
||||
_storage.DeleteLogs(ChannelName);
|
||||
_channel = new Mobile.Channel.Channel(ChannelName, MaxLogsPerBatch, timeSpan, MaxParallelBatches,
|
||||
_channel = new Microsoft.AppCenter.Channel.Channel(ChannelName, MaxLogsPerBatch, timeSpan, MaxParallelBatches,
|
||||
_appSecret, _mockIngestion, _storage);
|
||||
MakeIngestionCallsSucceed();
|
||||
SetupEventCallbacks();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterChannel;
|
||||
using Microsoft.AppCenter.Channel;
|
||||
using Moq;
|
||||
|
||||
namespace Microsoft.AppCenter.Test.Channel
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterIngestion.Http;
|
||||
using Microsoft.AppCenter.Ingestion.Http;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace Microsoft.AppCenter.Test.Windows.Ingestion.Http
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Microsoft.AppCenterIngestion.Http
|
||||
namespace Microsoft.AppCenter.Ingestion.Http
|
||||
{
|
||||
public class TestServiceCall : ServiceCallDecorator
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterIngestion;
|
||||
using Microsoft.AppCenter.Ingestion;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ namespace Microsoft.AppCenter.Test.Windows.Ingestion.Models
|
|||
Sid = Guid.NewGuid()
|
||||
};
|
||||
|
||||
var storage = new Mobile.Storage.Storage();
|
||||
var storage = new Microsoft.AppCenter.Storage.Storage();
|
||||
storage.DeleteLogs(StorageTestChannelName);
|
||||
storage.PutLog(StorageTestChannelName, addedLog);
|
||||
var retrievedLogs = new List<Log>();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterIngestion.Models;
|
||||
using Microsoft.AppCenter.Ingestion.Models;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace Microsoft.AppCenter.Test.Ingestion.Models
|
||||
|
|
|
@ -5,7 +5,7 @@ using Moq;
|
|||
|
||||
namespace Microsoft.AppCenter.Test.Windows.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
[TestClass]
|
||||
public class LogTest
|
||||
|
|
|
@ -6,7 +6,7 @@ using Moq;
|
|||
|
||||
namespace Microsoft.AppCenter.Test.Windows.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
[TestClass]
|
||||
public class LogWithPopertiesTest
|
||||
|
|
|
@ -61,7 +61,7 @@ namespace Microsoft.AppCenter.Test.Windows.Ingestion.Models
|
|||
Sid = Guid.NewGuid()
|
||||
};
|
||||
|
||||
var storage = new Mobile.Storage.Storage();
|
||||
var storage = new Microsoft.AppCenter.Storage.Storage();
|
||||
storage.DeleteLogs(StorageTestChannelName);
|
||||
storage.PutLog(StorageTestChannelName, addedLog);
|
||||
var retrievedLogs = new List<Log>();
|
||||
|
|
|
@ -3,7 +3,7 @@ using Microsoft.AppCenter.Ingestion.Models;
|
|||
|
||||
namespace Microsoft.AppCenter.Test.Windows.Ingestion.Models
|
||||
{
|
||||
using Device = Mobile.Ingestion.Models.Device;
|
||||
using Device = Microsoft.AppCenter.Ingestion.Models.Device;
|
||||
|
||||
class TestLog: Log
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterIngestion;
|
||||
using Microsoft.AppCenter.Ingestion;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterChannel;
|
||||
using Microsoft.AppCenter.Channel;
|
||||
using Moq;
|
||||
|
||||
namespace Microsoft.AppCenter.Test
|
||||
|
|
|
@ -9,7 +9,7 @@ using Moq;
|
|||
|
||||
namespace Microsoft.AppCenter.Test
|
||||
{
|
||||
using PredType = Expression<Func<Mobile.Storage.Storage.LogEntry, bool>>;
|
||||
using PredType = Expression<Func<Microsoft.AppCenter.Storage.Storage.LogEntry, bool>>;
|
||||
|
||||
[TestClass]
|
||||
public class FakeStorageTest
|
||||
|
@ -24,10 +24,10 @@ namespace Microsoft.AppCenter.Test
|
|||
{
|
||||
var mockConnection = new Mock<IStorageAdapter>();
|
||||
mockConnection.Setup(
|
||||
c => c.InsertAsync(It.IsAny<Mobile.Storage.Storage.LogEntry>()))
|
||||
c => c.InsertAsync(It.IsAny<Microsoft.AppCenter.Storage.Storage.LogEntry>()))
|
||||
.Callback(() => Task.Delay(TimeSpan.FromDays(1)).Wait())
|
||||
.Returns(TaskExtension.GetCompletedTask(1));
|
||||
var storage = new Mobile.Storage.Storage(mockConnection.Object);
|
||||
var storage = new Microsoft.AppCenter.Storage.Storage(mockConnection.Object);
|
||||
|
||||
// Ignore warnings because we just want to "fire and forget"
|
||||
#pragma warning disable 4014
|
||||
|
@ -47,10 +47,10 @@ namespace Microsoft.AppCenter.Test
|
|||
{
|
||||
var mockConnection = new Mock<IStorageAdapter>();
|
||||
mockConnection.Setup(
|
||||
c => c.InsertAsync(It.IsAny<Mobile.Storage.Storage.LogEntry>()))
|
||||
c => c.InsertAsync(It.IsAny<Microsoft.AppCenter.Storage.Storage.LogEntry>()))
|
||||
.Callback(() => Task.Delay(TimeSpan.FromSeconds(2)).Wait())
|
||||
.Returns(TaskExtension.GetCompletedTask(1));
|
||||
var storage = new Mobile.Storage.Storage(mockConnection.Object);
|
||||
var storage = new Microsoft.AppCenter.Storage.Storage(mockConnection.Object);
|
||||
|
||||
// Ignore warnings because we just want to "fire and forget"
|
||||
#pragma warning disable 4014
|
||||
|
@ -69,7 +69,7 @@ namespace Microsoft.AppCenter.Test
|
|||
public void ShutdownPreventsNewTasks()
|
||||
{
|
||||
var mockConnection = new Mock<IStorageAdapter>();
|
||||
var storage = new Mobile.Storage.Storage(mockConnection.Object);
|
||||
var storage = new Microsoft.AppCenter.Storage.Storage(mockConnection.Object);
|
||||
var result = storage.ShutdownAsync(TimeSpan.FromSeconds(10)).RunNotAsync();
|
||||
Assert.IsTrue(result);
|
||||
Assert.ThrowsException<StorageException>(
|
||||
|
@ -86,7 +86,7 @@ namespace Microsoft.AppCenter.Test
|
|||
mockAdapter.Setup(
|
||||
a => a.GetAsync(It.IsAny<PredType>(), It.IsAny<int>()))
|
||||
.Throws(new StorageException());
|
||||
var fakeStorage = new Mobile.Storage.Storage(mockAdapter.Object);
|
||||
var fakeStorage = new Microsoft.AppCenter.Storage.Storage(mockAdapter.Object);
|
||||
var logs = new List<Log>();
|
||||
Assert.ThrowsException<StorageException>(() =>
|
||||
fakeStorage.GetLogsAsync(StorageTestChannelName, 1, logs).RunNotAsync());
|
||||
|
@ -102,13 +102,13 @@ namespace Microsoft.AppCenter.Test
|
|||
mockAdapter.Setup(
|
||||
a => a.GetAsync(It.IsAny<PredType>(), It.IsAny<int>()))
|
||||
.Throws(new StorageException());
|
||||
mockAdapter.Setup(c => c.InsertAsync(It.IsAny<Mobile.Storage.Storage.LogEntry>()))
|
||||
mockAdapter.Setup(c => c.InsertAsync(It.IsAny<Microsoft.AppCenter.Storage.Storage.LogEntry>()))
|
||||
.Throws(new StorageException());
|
||||
mockAdapter.Setup(c => c.DeleteAsync(It.IsAny<Expression<Func<Mobile.Storage.Storage.LogEntry, bool>>>()))
|
||||
mockAdapter.Setup(c => c.DeleteAsync(It.IsAny<Expression<Func<Microsoft.AppCenter.Storage.Storage.LogEntry, bool>>>()))
|
||||
.Throws(new StorageException());
|
||||
mockAdapter.Setup(c => c.CountAsync(It.IsAny<Expression<Func<Mobile.Storage.Storage.LogEntry, bool>>>()))
|
||||
mockAdapter.Setup(c => c.CountAsync(It.IsAny<Expression<Func<Microsoft.AppCenter.Storage.Storage.LogEntry, bool>>>()))
|
||||
.Throws(new StorageException());
|
||||
var fakeStorage = new Mobile.Storage.Storage(mockAdapter.Object);
|
||||
var fakeStorage = new Microsoft.AppCenter.Storage.Storage(mockAdapter.Object);
|
||||
|
||||
Assert.ThrowsException<StorageException>(() => fakeStorage.PutLog("channel_name", new TestLog()).RunNotAsync());
|
||||
Assert.ThrowsException<StorageException>(() => fakeStorage.DeleteLogs("channel_name", string.Empty).RunNotAsync());
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Microsoft.AppCenter.Test
|
|||
public class StorageTest
|
||||
{
|
||||
private const string StorageTestChannelName = "storageTestChannelName";
|
||||
private readonly Mobile.Storage.Storage _storage = new Mobile.Storage.Storage();
|
||||
private readonly Microsoft.AppCenter.Storage.Storage _storage = new Microsoft.AppCenter.Storage.Storage();
|
||||
|
||||
[TestInitialize]
|
||||
public void InitializeStorageTest()
|
||||
|
@ -207,7 +207,7 @@ namespace Microsoft.AppCenter.Test
|
|||
[TestMethod]
|
||||
public void FailToGetALog()
|
||||
{
|
||||
var invalidLogEntry = new Mobile.Storage.Storage.LogEntry { Channel = StorageTestChannelName, Log = "good luck deserializing me!" };
|
||||
var invalidLogEntry = new Microsoft.AppCenter.Storage.Storage.LogEntry { Channel = StorageTestChannelName, Log = "good luck deserializing me!" };
|
||||
var connection = new SQLiteConnection("Microsoft.AppCenter.Storage");
|
||||
|
||||
// Perform an arbitrary operation and wait on it to complete so that database is free when invalid log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterChannel;
|
||||
using Microsoft.AppCenter.Channel;
|
||||
|
||||
namespace Microsoft.AppCenter.Test.Windows
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterUtils;
|
||||
using Microsoft.AppCenter.Utils;
|
||||
using Moq;
|
||||
|
||||
namespace Microsoft.AppCenter.Test.Utils
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AppCenterUtils;
|
||||
using Microsoft.AppCenter.Utils;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче