public void Store_WithoutBuildConfiguration_Throws()
 {
     var result = BuildResult.Success(m_BuildPipeline, null);
     Assert.Throws<ArgumentNullException>(() => BuildArtifacts.Store(result, new IBuildArtifact[] { }));
 }
 public void GetBuildResult_WithoutBuildConfiguration_IsNull()
 {
     BuildArtifacts.Store(BuildResult.Success(m_BuildPipeline, m_BuildConfiguration), new IBuildArtifact[] { });
     var result = BuildArtifacts.GetBuildResult(null);
     Assert.That(result, Is.Null);
 }
 public void Store_WithoutBuildResult_Throws()
 {
     Assert.Throws<ArgumentNullException>(() => BuildArtifacts.Store(null, new IBuildArtifact[] { }));
 }
        public void Store_Throws_WhenNullArtifactsPassed()
        {
            var result = BuildPipelineResult.Success(m_BuildPipeline, m_BuildSettings);

            Assert.Throws <ArgumentNullException>(() => BuildArtifacts.Store(result, null));
        }
 public void GetBuildArtifact_DoesNotThrow_WhenNullBuildSettingsPassed()
 {
     Assert.DoesNotThrow(() => BuildArtifacts.GetBuildArtifact <IBuildArtifact>(null));
 }
 public void Store_Throws_WhenNullResultPassed()
 {
     Assert.Throws <ArgumentNullException>(() => BuildArtifacts.Store(null, new IBuildArtifact[] { }));
 }
Esempio n. 7
0
 public void GetBuildArtifact_WithInvalidType_IsNull()
 {
     Assert.That(BuildArtifacts.GetBuildArtifact(m_BuildConfiguration, typeof(TestInvalidArtifact)), Is.Null);
 }
Esempio n. 8
0
 public void GetBuildArtifact_WithNullType_IsNull()
 {
     Assert.That(BuildArtifacts.GetBuildArtifact(m_BuildConfiguration, null), Is.Null);
 }
Esempio n. 9
0
 public void GetBuildArtifact_WithoutBuildConfiguration_IsNull()
 {
     Assert.That(BuildArtifacts.GetBuildArtifact <IBuildArtifact>(null), Is.Null);
 }
Esempio n. 10
0
 public void GetBuildArtifact_NoCache_WithDeserializeException_IsNull()
 {
     new DirectoryInfo(BuildArtifacts.BaseDirectory).GetFile($"{m_BuildConfiguration.name}.json").WriteAllText("12345");
     LogAssert.Expect(UnityEngine.LogType.Error, new Regex(@"Failed to deserialize.*:\n.*"));
     Assert.That(BuildArtifacts.GetBuildArtifact <TestArtifactB>(m_BuildConfiguration), Is.Null);
 }